package org.thinker.service.board;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.thinker.common.AbstractDAO;
import org.thinker.dao.board.BoardDAO;
import org.thinker.util.MyCriteria;
import org.thinker.vo.BoardVO;

@Service("boardService")
public class BoardServiceImpl extends AbstractDAO<BoardVO, Integer> implements BoardService {
	
	@Resource(name="boardDAO")
	private BoardDAO boardDAO;

	@Override
	public List<BoardVO> listBoard(MyCriteria cri) throws Exception {
		return boardDAO.getBoardList(cri);
	}

	@Override
	public void writeBoard(BoardVO vo) throws Exception {
		boardDAO.create(vo);
	}

	@Override
	public BoardVO readBoard(int bbsno) throws Exception {
		return null;
	}

	@Override
	public void updateBoard(BoardVO vo) throws Exception {

	}

	@Override
	public void deleteBoard(int bbsno) throws Exception {

	}

}
